package com.meter.basic.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.meter.common.annotation.Excel;
import com.meter.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 热表数据
 */
@Data
@Accessors(chain = true)
@TableName("basic_meter")
public class BasicMeter extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long meterId;

    private Long houseId;

    @Excel(name = "所属住房")
    @TableField(exist = false)
    private String houseName;

    @Excel(name = "联系人")
    private String leader;

    @Excel(name = "联系电话")
    private String phone;

    @Excel(name = "热表表号")
    private String meterNo;

    private Long deviceId;

    @Excel(name = "采集设备")
    @TableField(exist = false)
    private String deviceCode;

    @TableField(exist = false)
    private String deviceFactory;

    @Excel(name = "所属厂家", dictType = "meter_factory", comboDict = "meter_factory")
    private String meterFactory;

    @Excel(name = "累计热量", type = Excel.Type.EXPORT)
    private Double  heat;

    @Excel(name = "累计流量", type = Excel.Type.EXPORT)
    private Double flow;

    @Excel(name = "进水温度", type = Excel.Type.EXPORT)
    private Double inlet;

    @Excel(name = "出水温度", type = Excel.Type.EXPORT)
    private Double outlet;

    @Excel(name = "采集时间", type = Excel.Type.EXPORT)
    private Date readingTime;

    @TableLogic
    private String delFlag;

    private String remark;

    @TableField(exist = false)
    private String onlineStatus;
}
